Configuring ODBC Client Data Sources on Windows

To configure 32-bit and 64-bit client data sources for the ODBC Client on Windows platforms, you use the ODBC Administrator.

Configuring ODBC User and System Client Data Sources

  1. Start the ODBC Administrator. To start the ODBC Administrator, select Start / Programs. From the Programs menu, select DataDirect SequeLink 6.0 Client for ODBC or DataDirect SequeLink 6.0 Client for ODBC 64-bit, and then select the ODBC Administrator application.
  2. Click the User DSN tab or the System DSN tab to list user or system data sources, respectively.
  3. To configure a new data source, click the Add button. A list of installed drivers appears. Select DataDirect SequeLink 6.0; then, click Finish.
  4. NOTE: To change an existing data source, select the data source you want to configure and click the Configure button.

    The DataDirect SequeLink for ODBC Setup window appears.

  5. On the General tab, provide the following information; then, click Apply.
  6. Data Source Name: Type a unique name that identifies this ODBC data source configuration. Examples are Accounting or SequeLink to Oracle Data.

    Description: Optionally, type a description of the data source, for example, My Accounting Database or Accounting Data in Oracle (SSL).

    SequeLink Server Host: Type the TCP/IP host name of the SequeLink service to which the ODBC Client will connect.

    SequeLink Server Port: Type the TCP/IP port the SequeLink service is listening on for connection requests. The port you specify must be the same port that was specified for the SequeLink service when the SequeLink Server was installed; the default is 19996.

    Server Data Source: Type the name of a server data source configured for the SequeLink service to use for the connection, or click the ... button to select an existing server data source. This field is optional. If a server data source is not specified, the default server data source for that SequeLink service is used.

    Use LDAP: To configure the ODBC Client to retrieve connection information from an LDAP directory, select the Use LDAP check box. The fields change on the lower half of the screen to accommodate the information required to query an LDAP server for connection information. Provide the following information:

    LDAP Server Host: Type the TCP/IP host name of the LDAP server.

    LDAP Server Port: Type the TCP/IP port the LDAP server is listening on for connection requests. The default value is 389.

    Distinguished Name (DN): Type an identifier that uniquely identifies the LDAP entry where the connection information is stored.

    Encrypted (SSL): If the remote SequeLink service is configured for Secure Sockets Layer (SSL) encryption, select this check box. If connecting to a SequeLink service enabled for SSL, you must select this check box.

    When the check box is cleared (the default), communication between the SequeLink Client and SequeLink Server is not encrypted.

    Translate: Click Translate only if you want to configure an ODBC translator.

    NOTE: We strongly recommend that you do not configure an ODBC translator; instead, rely on the native SequeLink transliteration between server and client code pages.

    The Select Translator dialog box appears, listing translators specified in the ODBC Translators section of the system information file. Select a translator. When satisfied with your choice, click OK to close this dialog box and perform the translation.

  7. Optionally, click the Failover tab to specify Failover data source settings.
  8. Provide any of the following information; then, click Apply.

    Load Balancing: Select this check box to allow the driver to use client load balancing in its attempts to connect to primary and alternate database servers. In this case, the driver attempts to connect to the database servers in random order.

    If this check box is not selected (the default), client load balancing is not used and the driver connects to each database server based on its sequential order (primary server first, then, alternate servers in the order they are specified).

    NOTE: This option has no effect unless alternate servers are defined for the Alternate Servers connection option.

    Alternate Servers: Type a list of alternate SequeLink servers to which the driver will try to connect if the primary SequeLink server is unavailable, using a string that defines the physical location of each alternate server. Specifying a value for this option enables connection failover for the driver.

    IMPORTANT: If you specified an LDAP server in the LDAP Server Host field, the alternate servers must be LDAP servers.

    The server name and port are required for each alternate server entry. All of the other required connection information for each alternate server is the same as what is defined for the primary server connection. Currently, the only optional property that can be set for the alternate server is Server Data Source.

    The string has the format:

    (Host=servername1:Port=port1[:ServerDataSource=serverdatasourcename1], Host=servername2:Port=port2[:ServerDataSource=serverdatasourcename2],...)

    For example, the following Alternate Servers value defines two alternate SequeLink servers for connection failover:

    (Host=server2:Port=19996:ServerDataSource=SDSN2,Host=server3:Port=19996:ServerDataSource=SDSN3)

    If you are connecting to an LDAP server, the syntax includes the physical location of the server and the port number:

    (Host=ld1.foo.com:Port=389,Host=ld2.foo.com:Port=389,Host=ld3.foo.com:Port=389)

    Connection Retry Count: Type a value to specify the number of times the driver tries to connect to the primary server and, if configured, to the alternate servers after the initial unsuccessful attempt.

    Valid values are integers from 0 to 65535. When set to 0 (the default), the driver does not try to connect after the initial unsuccessful attempt.

    If a connection is not established during the retry attempts, the driver returns an error that is generated by the first server to which it tried to connect.

    This option and the Connection Retry Delay connection option, which specifies the wait interval between attempts, can be used in conjunction with connection failover.

    Connection Retry Delay: Type a value to specify the number of seconds that the driver waits after the initial unsuccessful connection attempt before retrying a connection to the primary server and, if specified, to the alternate servers.

    Valid values are integers from 0 to 65535. The default value is 3 (seconds). When set to 0, there is no delay between retries.

    NOTE: This option has no effect unless the Connection Retry Count connection option is set to an integer value greater than 0.

    This option and the Connection Retry Count connection option, which specifies the number of times the driver tries to connect after the initial unsuccessful attempt, are used in conjunction with connection failover.

    Force SQL_DRIVER_NOPROMPT: Select this check box when connection failover or load balancing is enabled. This check box must be also selected if the application cannot change the DriverCompletion argument to SQL_DRIVER_NOPROMPT.

    If this check box is not selected (the default), the behavior of the application is not changed.

  9. At any point during the configuration process, you can click Test Connect to attempt to connect to the data source using the connection properties specified in the driver Setup dialog box.
  10. Note that the information you enter in the logon dialog box during a test connect is not saved.

    • If the driver can connect, it releases the connection and displays a Connection Established message. Click OK.
    • If the driver cannot connect because of an improper environment or incorrect connection value, it displays an appropriate error message. Click OK.

    NOTE: If you are configuring alternate servers for use with the connection failover feature, be aware that the Test Connect button tests only the primary server, not the alternate servers.

  11. Click OK or Cancel. If you click OK, the values you have specified become the defaults when you connect to the data source. You can change these defaults by using this procedure to reconfigure your data source. You can override these defaults by connecting to the data source using a connection string with alternate values.

Configuring ODBC File Client Data Sources

File data sources are data source files that can be stored on a file server, making the files available to any user who can access them. The 32-bit and 64-bit file-based data sources are created and used in the same manner.

To configure ODBC file client data sources:

  1. Start the ODBC Administrator by clicking Start, then Programs. From the Programs menu, select DataDirect SequeLink 6.0 Client for ODBC, and then select the ODBC Administrator application.
  2. Click the File DSN tab. The File DSN tab lists any file data sources in the specified directory.
  3. To configure a new data source, click the Add button. A list of installed drivers appears. Select DataDirect SequeLink 6.0; then, perform one of the following actions:
    • To configure the file data source to connect directly to a SequeLink Server without retrieving connection information from an LDAP directory, click OK. Then, skip to Step 5.
    • To configure the file data source to retrieve connection information from an LDAP directory, continue with the next step.
  4. Click Advanced. The Advanced File DSN Creation Settings window appears.
  5. Type UseLDAP=1 in the Type driver-specific keywords and values scrollable box; then, click OK. You are returned to the list of drivers. Click Next and continue with Step 5.

  6. The Create New Data Source window appears.
  7. Type the name of the file data source you want to create or click Browse to select an existing file data source; then, click Next.

  8. The Create New Data Source displays the settings you have configured for this data source.

ODBC Connection Dialogs

A SequeLink data access connection involves the following stages:

  1. A network connection is established.
  2. An authentication mechanism is used to establish the identity of the SequeLink Client to the SequeLink Server.
  3. Based on information provided by the SequeLink Client application (for example, a database user name and password), a database connection is established.

Stage 1: Establishing a Network Connection

The first stage of the connection process involves establishing a network connection. The dialog box that appears depends on whether the connection has been configured to connect directly to a SequeLink service or to retrieve connection information for the SequeLink service from a centralized LDAP directory.

Connecting Directly to a SequeLink® Service

If the connection has been configured to connect directly to a SequeLink service, the Connect to the SequeLink Server dialog box appears.

Provide the following information; then, click OK.

SequeLink Server Host: Type the TCP/IP host name of the SequeLink service.

SequeLink Server Port: Type the TCP/IP port on which the SequeLink service is listening. A default installation of SequeLink Server uses the port 19996.

Server Data Source: Type the name of a server data source to use for the connection, or select one from the drop-down list. This step is optional. If a server data source is not specified, the default server data source for that service will be used for the connection.

Retrieving Connection Information from an LDAP Directory

If the connection has been configured to connect to an LDAP server to retrieve connection information from an LDAP directory, the Connect to the SequeLink Server dialog box appears.

Provide the following information; then, click OK.

LDAP Server Host: Type the TCP/IP host name of the LDAP server.

LDAP Server Port: Type the TCP/IP port on which the LDAP server is listening.

Distinguished Name: Type the Distinguished Name (DN) of the LDAP entry.

Stage 2: SequeLink® Server Authentication

The second stage of the connection process involves authentication of the SequeLink Client to the SequeLink Server. The dialog boxes that appear depend on how authentication is configured for the SequeLink service.

Stage 3: Data Store Logon

The last stage of the connection process involves logging on the data store. The dialog boxes that appear depend on the data store logon method configured for the SequeLink service:

Testing ODBC Connections on Windows

  1. On the SequeLink Client, start the ODBC Administrator. To start the ODBC Administrator, select Start / Programs. From the Programs menu, select DataDirect SequeLink 6.0 Client for ODBC or DataDirect SequeLink 6.0 Client for ODBC 64-bit, and then select the ODBC Administrator application. The ODBC Data Source Administrator window appears listing resident data sources.
  2. Click the Test Connect button to test the connection. If successful, a dialog appears telling you the connection was successful. You are now ready to start using your ODBC applications with SequeLink.